package com.ruoyi.student_club.constants;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author lin
 * @Date 2022/1/12 14:24
 */
@AllArgsConstructor
@Getter
public enum Gender implements IEnum<Integer> {

    /**
     * 未知
     */
    NONE(0),

    /**
     * 男
     */
    MAN(1),

    /**
     * 女
     */
    WOMAN(2)
    ;

    @EnumValue
    private Integer code;

    @Override
    public Integer getValue() {
        return code;
    }
}
